﻿<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="modal-title">
            <i class="fa fa-sign-in"></i>
            签到管理
        </h3>
    </div>

    <div class="panel-body">
        <form class="form-inline">
            <div class="form-group" ng-hide="isAnyTime">
                <label class="control-label">场次：</label>
                <select ng-model="curScene" ng-options="item.ExamSceneName for item in sceneList" class="form-control selectMaxWidth"></select>
            </div>

            <div class="form-group" ng-hide="isAnyTime">
                <label class="control-label">考场：</label>
                <select ng-model="curRoom" ng-options="item.ExamRoomName for item in roomList" class="form-control selectMaxWidth"></select>
            </div>

            <div class="form-group">
                <label class="control-label">科目：</label>
                <select ng-model="curSubject" ng-options="item.SubjectName for item in subjectList" class="form-control selectMaxWidth"></select>
            </div>

            &nbsp;
            &nbsp;

            <button class="btn btn-turquoise" ng-click="query();" style="margin-bottom: 0;">
                <i class="fa fa-search"></i>
                搜索
            </button>
        </form>

        <br />
        <table class="table responsive table-bordered table-hover">
            <thead>
                <tr class="active">
                    <th class="text-center">#</th>
                    <th ng-hide="isAnyTime">场次</th>
                    <th ng-hide="isAnyTime">考场</th>
                    <th>科目</th>
                    <th>考生数</th>
                    <th>考试开始时间</th>
                    <th>考试结束时间</th>
                    <th ng-hide="isOfficial">操作</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="item in list">
                    <!--序号-->
                    <td class="text-center">{{$index+1}}</td>
                    <!--考场-->
                    <td ng-hide="isAnyTime">{{item.ExamSceneName}}</td>
                    <!--场次-->
                    <td ng-hide="isAnyTime">{{item.ExamRoomName}}</td>
                    <!--科目-->
                    <td>{{item.SubjectName}}</td>
                    <!--考生数-->
                    <td>{{item.ExamStudentCount}}</td>
                    <!--考试开始时间-->
                    <td ng-bind-html="item.BeginTime | formatLineDate | date: 'yyyy-MM-dd HH:mm'"></td>
                    <!--考试开始时间-->
                    <td ng-bind-html="item.EndTime | formatLineDate | date: 'yyyy-MM-dd HH:mm'"></td>
                    <!--操作-->
                    <td ng-hide="isOfficial">
                        <button class="btn btn-turquoise" ng-click="buildAccounts(item)">
                            生成考生账号
                        </button>
                    </td>
                </tr>
            </tbody>
        </table>

        <h3 class="text-center" ng-if="list.length <= 0">
            <img src="//openexamcdn.open.com.cn/openexam/static/App/images/nodata.jpg" alt="" />
            <!--<small>对不起，没有相关数据！</small>-->
        </h3>
    </div>
</div>
